package ch07;

import java.text.SimpleDateFormat;
import java.util.Date;

class _07_ImportTest {
	public static void main(String[] args) {
		Date today = new Date();

		SimpleDateFormat date = new SimpleDateFormat("yyyy/MM/dd");
		SimpleDateFormat time = new SimpleDateFormat("hh:mm:ss a");

		System.out.println("Date: " + date.format(today));
		System.out.println("Time: " + time.format(today));
	}
}
/*
Date: 2014/08/28
Time: 11:56:46 오전
*/